package com.synergy.stockflow.warehouse.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.synergy.stockflow.product.entity.Material;
import com.synergy.stockflow.warehouse.entity.InventoryTransaction;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.synergy.stockflow.warehouse.entity.InventorySnapshot;
import com.synergy.stockflow.warehouse.mapper.InventorySnapshotMapper;
import com.synergy.stockflow.warehouse.service.InventorySnapshotService;

@Service
public class InventorySnapshotServiceImpl extends ServiceImpl<InventorySnapshotMapper, InventorySnapshot> implements InventorySnapshotService {

    @Override
    public List<InventoryTransaction> selectById(Page<InventoryTransaction> page, String materialId, String warehouseId) {
        List<InventoryTransaction> inventorySnapshots = baseMapper.selectById(page, materialId,warehouseId);
        return inventorySnapshots;
    }

}
